import { createRouter, createWebHashHistory } from 'vue-router'
import AdminEmptyComponent from '../components/admin/AdminEmptyComponent.vue';
import AdminUserComponent from '../components/admin/AdminUserComponent.vue'
import AdminGroupComponent from '../components/admin/AdminGroupComponent.vue'
import AppealComponent from "../components/admin/AppealComponent.vue";
import AdminSiteConfigComponent from '@/components/admin/AdminSiteConfigComponent.vue';


const routes = [
  {
    path: '/',
    name: 'index',
    component: AdminEmptyComponent
  },
  {
    path: '/user',
    name: 'user',
    component: AdminUserComponent
  },
  {
    path: '/group',
    name: 'group',
    component: AdminGroupComponent
  },
  {
    path: '/appeal',
    name: 'appeal',
    component: AppealComponent
  },
  {
    path: '/siteConfig',
    name: 'siteConfig',
    component: AdminSiteConfigComponent
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router